package com.yxd.spring.conetxt;

import com.yxd.spring.conetxt.bean.HelloSpring;
import com.yxd.spring.conetxt.bean.config.HelloSpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author 喻湘东
 * @Create 2019-12-20 11:00:07
 */
public class A {

	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(HelloSpringConfig.class);
		HelloSpring helloSpring = (HelloSpring) context.getBean("helloSpring");
		helloSpring.say();
	}

}
